#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main()
{
    char num1[101];
    char num2[101];
    scanf("%s", num1);
    scanf("%s", num2);
    int la, lb, lc, i, j;
    la = strlen(num1);
    lb = strlen(num2);
    lc = la + lb;
    int a[101] = {0};
    int b[101] = {0};
    int* c =(int*)malloc(sizeof(int) * lc);
    for(i = 0; i < la; i++)
    {
        a[i] = num1[la - 1 - i];
    }
    for(i = 0; i < lb; i++)
    {
        b[i] = num2[lb - 1 - i];
    }
    for(i = 0; i < la; i++)
    {
        for(j = 0; j < lb; j++)
        {
            c[i + j] += a[i]*b[j];
            c[i + j + 1] = c[i + j]/10;
            c[i + j] %= 10; 
        }
    }
    while(c[lc] == 0&&lc > 0)lc--;
    char* num3 = (char*)malloc(sizeof(char) * (lc + 2));
    for(i = 0; i <= lc; i++)
    {
        num3[i] = c[lc - i] + '0';
    }
    num3[lc + 1] = 0;
    printf("%s\n", num3);
    free(c);
    free(num3);
    return 0;
}